package com.hwua.service.impl;

import com.hwua.dao.ScoreDao;
import com.hwua.dao.impl.ScoreDaoImpl;
import com.hwua.entity.Score;
import com.hwua.service.ScoreService;

import java.util.List;
import java.util.Map;

/**
 * @author CQY
 */
public class ScoreServiceImpl implements ScoreService{
    ScoreDao dao=new ScoreDaoImpl();
    @Override
    public List<Score> findAll() {
        return dao.findAll();
    }

    @Override
    public int save(Score score) {
        return dao.save(score);
    }

    @Override
    public int delete(int id) {
        return dao.delete(id);
    }


    @Override
    public int update(Score score) {
        return 0;
    }

    @Override
    public List<Map<Object, String>> findCorrelation() {
        return dao.findCorrelation();
    }
}
